<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
</head>
<body>
<!--这里是样式-->
<input type="text">
<button>获取到值</button>
</body>
</html>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
//这里是逻辑 获取f到输入框里面的值哦 val ()获取到当前的值 是多少
// text() 设置或者返回所先元素的值
// html 设置或者返回所选元素的内容包括html 标记

$(document).ready(function () {
    var app=''
     $('button').click(function () {
        app=$('input').val()
        console.log(app);
     })
})
</script>